package com.bambooshoot.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.bambooshoot.common.annotation.ExcelDictFormat;
import com.bambooshoot.common.convert.ExcelDictConvert;
import com.bambooshoot.domain.BizIncomeDetails;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 收入明细视图对象 biz_income_details
 *
 * @author mxc
 * @date 2024-07-03
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BizIncomeDetails.class)
public class BizIncomeDetailsVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 收入日期
     */
    @ExcelProperty(value = "收入日期")
    @DateTimeFormat(value = "yyyy-MM-dd")
    private Date incomeDay;

    /**
     * 收入金额(元)
     */
    @ExcelProperty(value = "收入金额(元)")
    private BigDecimal amount;

    /**
     * 收入类型
     */
    @ExcelProperty(value = "收入类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "income_type")
    private Integer type;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
